package com.optionexplorer.util;

public class NumberUtils {

	public static float roundTwoDecimals(float in) {
		
		float out = 0;
		int i = (int) (in * 100);
		out = (float) i/100;
		return out;
		
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {

		float a = (float) 4.556734;
		System.out.println(roundTwoDecimals(a));
		
	}

}
